package com.msb.servicemap.service;

import com.msb.commons.response.ResponseResult;
import com.msb.commons.response.TerminalResponse;
import com.msb.servicemap.remote.TerminalClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

/**
 * @Author: chshh
 * @version: 1.0
 */
@Service
public class TerminalService {
    @Autowired
    private TerminalClient terminalClient;

    public ResponseResult add(String name,String desc) {

        return terminalClient.add(name,desc);
    }

    public ResponseResult<ArrayList<TerminalResponse>> aroundsearch(String center, int radius){
        return terminalClient.aroundsearch(center,radius);
    }
}
